<!DOCTYPE html>
<html>

<head>
    <title>Bar charts</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
    <link rel="stylesheet" type="text/css" href="https://mzkit.org/assets/js/page.css">
</head>

<body>
    <div class="container">

        <table style="width: 100%;">
            <tr>
                <td>geom_bar {ggplot2}</td>
                <td style="text-align: right;">R Documentation</td>
            </tr>
        </table>

        <h2>Bar charts</h2>

        <h3>Description</h3>

        <p><br /> There are two types of bar charts: geom<em>bar() and geom</em>col(). geom<em>bar() <br /> makes the height of the bar proportional to the number of cases in each<br /> group (or if the weight aesthetic is supplied, the sum of the weights).<br /> If you want the heights of the bars to represent values in the data, use <br /> geom</em>col() instead. geom<em>bar() uses stat</em>count() by default: it counts <br /> the number of cases at each x position. geom<em>col() uses stat</em>identity():<br /> it leaves the data as is.</p>

        <h3>Usage</h3>

        <div style="width: 100%; padding-left: 3%; color: black;">
            <pre><code class='language-R' style="color: black; font-weight:normal;"><strong>geom_bar</strong>(
    <i>stat</i> = <span style='color: brown;'><strong>"identity"</strong></span>,
    <i>position</i> = <span style='color: brown;'><strong>"stack"</strong></span>,
    <i>color</i> = <span style='color: #000000;'><strong>"black"</strong></span>,
    <i>width</i> = <span style='color: green;'>0.7</span>,
    <i>size</i> = <span style='color: green;'>0.25</span>,
    <i>show.legend</i> = <span style='color: blue !important;'>TRUE</span>);</code></pre>
        </div>

        <h3>Arguments</h3>

        <table>
            
<dt>stat</dt>
<dd><p>-</p></dd>


<dt>position</dt>
<dd><p>-</p></dd>


<dt>color</dt>
<dd><p>-</p></dd>


<dt>width</dt>
<dd><p>[as double]</p></dd>


<dt>size</dt>
<dd><p>[as double]</p></dd>


<dt>show.legend</dt>
<dd><p>[as boolean]</p></dd>


<dt>env</dt>
<dd><p>[as <a href="/vignettes/clr/SMRUCC/Rsharp/Runtime/Environment.html">Environment</a>]</p></dd>

        </table>


        <h3 style="display: none;">Details</h3>

        

        <h3 style="display: block">Authors</h3>

        SMRUCC genomics institute

        <h3>Value</h3>

        this function returns data object of type <a href="/vignettes/clr/ggplot/layers/geom_bar.html">geom_bar</a>.<h4>clr value class</h4><ul><li><a href="/vignettes/clr/ggplot/layers/geom_bar.html">geom_bar</a></li></ul>

        <h3 style="display: none;">Examples</h3>

        

        <hr />
        <div style="text-align: center;">[Package <em>ggplot2</em> version 1.0.0.0 <a
                href="../ggplot2.html">Index</a>]
        </div>
    </div>
</body>

<script type="text/javascript" src="https://mzkit.org/assets/js/R_syntax.js"></script>
<script type="text/javascript" src="https://mzkit.org/assets/js/highlights.js"></script>
<script type="text/javascript">r_highlights("example_r");</script>

</html>